<!-- 经办人编号录入EAM -->
    
<div style="margin:10px 0px 0px 250px">
    <div class="easyui-panel" title="经办人信息" 
      data-options="iconCls:'icon-group_add'"
      style="width:1000px;height:600px;">
      <div style="margin:50px 0px 0px 100px;font-size: 40px">
        <form id="EAMform" method="post">
          <div style="margin-bottom: 30px">
            编号:<input  name="ano" id="eaano" 
            class="easyui-textbox"
            style="width: 200px;height:40px"
            data-options=""></input>
            &nbsp;
            姓名:<input  name="aname" id="eaaname" 
            class="easyui-textbox"
            style="width: 200px;height:40px"
            data-options=""></input>
          </div>
            <div style="margin-bottom: 30px">
              性别:<select  class="easyui-combobox" name="asex" 
              data-options="panelHeight:'auto'" 
              style="width: 40px;height:40px">   
                <option value="男">男</option>   
                <option value="女">女</option> 
                  </select>  
             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              电话:<input  name="aphone" id="eaaphone" 
              class="easyui-textbox" 
              style="width: 200px;height:40px"
              data-options=""></input></td>
            </div>
            <div style="margin-bottom: 30px;">
              备注:<input  name="aremark" id="eaaremark"
              multiline="true"
              class="easyui-textbox" 
              style="width: 500px;height:150px"
              data-options="" ></input>
            </div>
          </form>
          <a  href="javascript:EAMclickEntry()"
            class="easyui-linkbutton"
            style="width: 150px;height: 40px;
            margin-left: 35%" 
            data-options="iconCls:'icon-group_add'"><h1>录入</h1></a>
        </div>
    </div>
</div>
<!-- 测试完成 -->
<script type="text/javascript">
  function EAMclickEntry() {
    if($("#eaano").val().length>8||$("#eaano").val().length==0) {
        $.messager.alert('提示', '编号不能长度大于8且不为空'); 
        return ;
    }
    if($("#eaaname").val().length>8) {
        $.messager.alert('提示', '姓名不能长度大于8'); 
        return ;
    }
    if($("#eaaphone").val().length>12) {
        $.messager.alert('提示', '电话不能长度大于12'); 
        return ;
    }
   
     if($("#eaaremark").val().length>50) {
        $.messager.alert('提示', '备注不能长度大于50'); 
        return ;
    }
  $('#EAMform').form({    
    url:'../Agency/SaveAgency',    
    onSubmit: function(){    
        // do some check    
        // return false to prevent submit;    
    },    
    success:function(data){   

        $.messager.alert('提示', data); 
    }    
});    
// submit the form    
$('#EAMform').submit();  
}
</script>